package jp.ddo.trismegistos.timer.entity;

/**
 * 
 * @author y_sugasawa
 * @since 2011/09/04
 * @author $Author: aigis.developer@gmail.com $
 * @version $Rev: 36 $ $Date: 2011-09-26 13:28:23 +0000 (Mon, 26 Sep 2011) $
 */
public class Time {

	private double nowTime;

	private double lapTime;

	private boolean top;

	public Time() {
		nowTime = 0.000d;
		lapTime = 0.000d;
	}

	public double calcLap(final double beforeTime) {
		lapTime = nowTime - beforeTime;
		return lapTime;
	}

	public double getNowTime() {
		return nowTime;
	}

	public void setNowTime(final double nowTime) {
		this.nowTime = nowTime;
	}

	public double getLapTime() {
		return lapTime;
	}

	public void setTop(final boolean top) {
		this.top = top;
	}

	public boolean isTop() {
		return top;
	}

}
